package net.zjitc.dao;

import net.zjitc.domain.Admin;
import net.zjitc.domain.Category;
import net.zjitc.domain.User;

import java.util.List;

/**
 * Created by guo on 2017/11/11.
 */
public interface Dao {
    Admin fingUsernameAndPassword(String username, String password);

    List<User> findAll();

    int delete(int uid);

    List<Category> findAllCategory();

    int addCategory(Category category);

    int deleteCategory(int cid);

    Category findCategoryId(int cid);

    int updateCategory(Category category);
}
